<?php
require_once($application_folder."/controllers/navigator.php");
class Dashboard extends Navigator{

    function __construct(){
        parent::__construct();
        
        /************************************************************
        * CHECK LOGIN
        *************************************************************/
        if(!$this->session->userdata('logged_in')){
            redirect(base_url());
        }
        
        $this->load->model('articlem','art');
    }

    function index(){
        $this->preview();
    }
    
    function preview(){
        $this->core_cms('dashboard',array('article' => $this->art->list_own()));
    }
}
